/*
 * Created on 22/09/2009
 *
 */
package com.stefanini.pe.bbva.mbl.smanager;

/**
 * @author jlezama
 *
 */
public class ItemList
{
    // Fields
    private Object objItem;
    private String strKey;
    private String strText;

    // Methods
    public ItemList()
    {
    }

    public ItemList(String Key, String Text)
    {
        this.strText = Text;
        this.strKey = Key;
    }

    public ItemList(String Key, String Text, Object Item)
    {
        this.strText = Text;
        this.strKey = Key;
        this.objItem = Item;
    }

    public int compareTo(Object obj)
    {
        ItemList list = (ItemList)obj;
        return this.strText.compareTo(list.getStrText());
    }

    public String toString()
    {
        return this.strText;
    }

    
	/**
	 * @return Returns the objItem.
	 */
	public Object getObjItem() {
		return objItem;
	}
	/**
	 * @param objItem The objItem to set.
	 */
	public void setObjItem(Object objItem) {
		this.objItem = objItem;
	}
	/**
	 * @return Returns the strKey.
	 */
	public String getStrKey() {
		return strKey;
	}
	/**
	 * @param strKey The strKey to set.
	 */
	public void setStrKey(String strKey) {
		this.strKey = strKey;
	}
	/**
	 * @return Returns the strText.
	 */
	public String getStrText() {
		return strText;
	}
	/**
	 * @param strText The strText to set.
	 */
	public void setStrText(String strText) {
		this.strText = strText;
	}
}
